package com.anlu.base;

import lombok.Getter;

@Getter
public class Request {

    private final RequestType requestType;

    private final String requestDescription;

    private boolean handled;

    public Request(RequestType requestType, String requestDescription) {
        this.requestType = requestType;
        this.requestDescription = requestDescription;
    }

    /**
     * Mark the request as handled.
     */
    public void markHandled() {
        this.handled = true;
    }

    @Override
    public String toString() {
        return getRequestDescription();
    }

}
